#!/bin/bash

echo "Upgrading crontab"
mv crontab /etc/

echo "Upgrading database structure"
mysql -u root -p scheduler < scheduler.sql

echo "Upgrading reservations checker"
mv reservations_check.rb /usr/sbin/
chmod 750 /usr/sbin/reservations_check.rb

